package com.yonyou.gmmc.service.violationInquiry.dao;

import java.util.Date;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.marketing.common.dto.customerInfo.MemberDto;

import com.yonyou.gmmc.common.annotation.OracleDb;
import com.yonyou.gmmc.service.violationInquiry.model.TmRegulations;

import tk.mybatis.mapper.common.Mapper;
@OracleDb
public interface TmRegulationsMapper extends Mapper<TmRegulations> {
	
	public MemberDto queryMember(@Param("userId") Integer userId);
	
	public Map<String,Object> queryCar(@Param("registNo") String registNo);
	
	public Integer queryPK();
	/**同一个用户id下一天查询n次*/
	public Integer queryViolationInquiryNum(@Param("userId") Integer userId,@Param("date") String date);
	/**同一辆车n分钟内，取本地数据*/
	public Map<String,Object> queryViolationTime(@Param("registNo") String registNo,@Param("vin") String vin,
			@Param("engine") String engine,@Param("date") Date date);
}